# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         demo02
# Description:
# Author:       ASUS
# Date:         2019/3/13
#-------------------------------------------------------------------------------


class Person(object):
    def __init__(self,name,age,zhuanye,yuan,school):
        self.name = name
        self.age = age
        self.zhuanye = zhuanye
        self.yuan = yuan
        self.school = school
    def getinfo(self):
        return "我叫{}，今年{}岁，来自{}{}{}专业".format(self.name,self.age,self.school,self.yuan,self.zhuanye)

if __name__ == '__main__':
    person = Person("黄周云","21","信管","商院","湖南工业大学")
    print(person.getinfo())









